<?php
namespace app\api\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
		'uid'              => 'require',
		'gid'              => 'require|number',
		'sid'              => 'require|number',
		'agent'			   => 'require|number',
		'time'			   => 'require',
		'sign'			   => 'require',
	];

    protected $message = [
        'uid.require'              => '玩家UID不能为空',
		'gid.require'              => '游戏GID不能为空',
        'gid.number'               => '游戏GID必须为整数型',
        'sid.require'              => '区服SID不能为空',
        'sid.number'               => '区服SID必须为整数型',
        'agent.require'            => '代理AID不能为空',
        'agent.number'             => '代理AID必须为整数型',
        'time.require'             => '时间不能为空',	
        'sign.require'             => '签名不能为空',		
    ];
}